<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>选择器权重</title>
		<!-- 选择器权重越高，选择几lu越大 -->
		<style>
			*{
				/* 权值0  很容忆被覆盖 */
				color: blue;
				background: #498;
			}
			div{
				/* 权值1*/
			color: #498;
			background: #498;
			}
			.d1{
				color: #498;
				background: #498;
			}
			
			div.di{
				color: #498;
				background: #498;
			}
			body div.d1{
				/* 权值12 */
			}
			
			
			#d1{
				/* 权值1*/
			color: #498;
			background: #498;
			}
			
			
			
		</style>
	</head>
	<body>
		<div></div>
	</body>
</html>